home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 160 - Disc 2 / MF_UK_160_2.iso / pc / DiscContent / Trials / oxygen / samples / debugger / Combining stylesheets / sample4.xsl < prev   
Encoding:
Extensible Markup Language  |  2005-07-21  |  741 b   |  19 lines

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--    Category:    Combining Stylesheets
  3.     Sample from Zvon XSLT tutorial (www.zvon.org)  
  4.     Description:    Import precedence is more important than priority precedence.  -->
  5. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  6.     <xsl:import href="sample3.xsl"/>
  7.     <xsl:template match="/">
  8.         <xsl:apply-templates select="//CCC"/>
  9.     </xsl:template>
  10.     <xsl:template match="CCC" priority="-100">
  11.         <H3 style="color:red">
  12.             <xsl:value-of select="name()"/>
  13.             <xsl:text> (id=</xsl:text>
  14.             <xsl:value-of select="@id"/>
  15.             <xsl:text>)</xsl:text>
  16.         </H3>
  17.     </xsl:template>
  18. </xsl:stylesheet>
  19.